/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ipark.sistemski;

import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

/**
 *
 * @author damjan
 */
public class napaka {
    private Date datum;
    private String opisNap;
    private int oddelek;
    private boolean status;
    
    public void setOpisNap(String a){ this.opisNap=a; }
    public void setDatumNap(Date dat){ this.datum=dat; }
    public void setOddelek(int b){this.oddelek=b; }
    public void setStatus(boolean c){this.status=c; }
    public String getOpisNap(){ return opisNap; }
    public Date getDatumNap(){ return datum; }
    public int getOddelek(){ return oddelek; }
    public boolean isFixed(){ return status; }
    
    napaka()
    {
        datum = new Date();
        opisNap = "Ni opisa - nekdo vas ima za norca";
        oddelek = 0;
        status = false;

    }
    
    napaka(String opisNap, int oddelek, boolean status)
    {
        datum = new Date();
        this.opisNap=opisNap;
        this.oddelek=oddelek;
        this.status = status;
    };
    
    @Override
   public String toString(){
    return Integer.toString(oddelek);//" "+oddelek;
    }
}
